.PHONY: clean

RM = del
CC = cl
LINK = link
CFLAGS = /c /EHs /nologo /MD /Zi
LFLAGS = /nologo /debug /subsystem:console
LIBS = user32.lib kernel32.lib

game.exe: main.obj
	$(LINK) $(LFLAGS) /out:game.exe $(LIBS) $^

main.obj: main.cpp hello.hpp

pch.pch: pch.hpp pch.cpp
	$(CC) $(CFLAGS) /Ycpch.hpp /Fppch.pch pch.cpp

%.obj: %.cpp pch.pch
	$(CC) $(CFLAGS) /Yupch.hpp /Fppch.pch $<

clean:
	$(RM) *.obj *~ *.pch *.pdb 

